﻿using System;

namespace MicroCloud.Tests.Json
{
    public class JsonConvert
    {
        [Fact]
        public void SerializeTest()
        {
            string[] model = null;
            var obj= Newtonsoft.Json.JsonConvert.SerializeObject(model);

            var a = nameof(JsonConvert);
            JsonConvert jc = new JsonConvert();
            var b = nameof(jc);

        }

        [Fact]
        public void SerializeTest2()
        {
            var dir = @"http://www.baidu.com";
            var s = dir[dir.LastIndexOf("//", StringComparison.Ordinal)..];
            var s2 = dir.Substring(dir.LastIndexOf("\\", StringComparison.Ordinal));

        }
    }

    public class Parent
    {
        public string Name { get; set; }

        public void Get(Parent parent)
        {

        }
    }


    public class Children : Parent
    {
        public int Age { get; set; }
    }
}
